package com.wfcm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wfcm.dao.WfCourseInfoDao;
import com.wfcm.entity.WfCourseInfoEntity;
import com.wfcm.service.WfCourseInfoService;



@Service("wfCourseInfoService")
public class WfCourseInfoServiceImpl implements WfCourseInfoService {
	@Autowired
	private WfCourseInfoDao wfCourseInfoDao;
	
	@Override
	public WfCourseInfoEntity queryObject(Integer id){
		return wfCourseInfoDao.queryObject(id);
	}
	
	@Override
	public List<WfCourseInfoEntity> queryList(Map<String, Object> map){
		return wfCourseInfoDao.queryList(map);
	}
	
	@Override
	public List<WfCourseInfoEntity> querySearchList(Map<String, Object> map){
		return wfCourseInfoDao.querySearchList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return wfCourseInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(WfCourseInfoEntity wfCourseInfo){
		wfCourseInfoDao.save(wfCourseInfo);
	}
	
	@Override
	public void update(WfCourseInfoEntity wfCourseInfo){
		wfCourseInfoDao.update(wfCourseInfo);
	}
	
	@Override
	public void delete(Integer id){
		wfCourseInfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		wfCourseInfoDao.deleteBatch(ids);
	}

	@Override
	public List<WfCourseInfoEntity> queryCategoryList(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return wfCourseInfoDao.queryCategoryList(map);
	}
	
	@Override
	public WfCourseInfoEntity querySimpleObject(Integer id) {
		// TODO Auto-generated method stub
		return wfCourseInfoDao.querySimpleObject(id);
	}

	@Override
	public WfCourseInfoEntity queryObjectById(Integer id) {
		// TODO Auto-generated method stub
		return wfCourseInfoDao.queryObjectById(id);
	}

	@Override
	public WfCourseInfoEntity queryObjectIgnoreStatus(Integer id) {
		// TODO Auto-generated method stub
		return wfCourseInfoDao.queryObjectIgnoreStatus(id);
	}

	@Override
	public List<WfCourseInfoEntity> recommend() {
		return wfCourseInfoDao.recommend();
	}

	@Override
	public String queryCourseLabel(Integer type, Integer foreignId) {
		return wfCourseInfoDao.queryCourseLabel(type, foreignId);
	}
}
